/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author RICARDO
 */
public class LoginForm extends ActionForm{
    String nombre;
    String contrasena;
    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getContrasena() {
        return contrasena;
    }

    public void setContrasena(String contrasena) {
        this.contrasena = contrasena;
    }
    public void reset(){
        this.nombre=null;
        this.contrasena=null;
    }
/*
    @Override
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
       // return super.validate(mapping, request); //To change body of generated methods, choose Tools | Templates.
             
        ActionErrors errors = new ActionErrors();
        if (nombre.length()<=0){
            errors.add("usu", new ActionMessage("errors.usuario"));
        }
       //mapping.findForward("usuario");
        mapping.getInputForward();
        return errors;
    }
    */
 
    
}
